﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Core"
                   namespace="Core.Model">
  <class name="TipoTerminal" table="TIPO_TERMINAL">
    <id name="Id" column="TIPO_TERMINAL_ID">
      <generator class="native">
        <param name="sequence">GEN_ID_TIPO_TERMINAL</param>
      </generator>
    </id>
    <property name="Nome" column="NOME" length="40" not-null="true" />
    <bag name="Terminal" inverse="true" lazy="true" cascade="delete">
      <key column="TIPO_TERMINAL_ID" />
      <one-to-many class="Core.Model.Terminal,Core" />
    </bag>    
  </class>
</hibernate-mapping>